python csv write add new line

38

python csv write add new line -

with open('output.csv', 'w', newline='\n', encoding='utf-8') as f:
    writer = csv.writer(f)
    ...

Comments

Submit
0 Comments